package cn.tedu.luckydrawuser.controller;

import cn.tedu.luckydrawuser.protocol.po.UserLog;
import cn.tedu.luckydrawuser.service.IUserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

/**
 * 控制层-用户日志
 */
//@RestController
@RequestMapping("/draw/user-log")
public class UserLogController {
//    @Autowired
    private IUserLogService userLogService;

    /**
     * 获取用户日志
     */
    @GetMapping("/findAll")
    public Flux<UserLog> findAll(){
        Flux<UserLog> flux = userLogService.findAll();
        return flux;
    }
}
